package cn.iune.platform.portal;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Transient;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

@Entity
@NamedQuery(name="Messages.findAll", query="SELECT s FROM Messages s")
public class Messages {

	public Messages (){
		
	}
	
	@Id
	@Column(length=36)
	private String fID;
	@Column(length=36)
	private String fMasterID;
	
	@Column(length=128)
	private String sTitle;
	@Column(length=2048)
	private String sMessage;
	
	@Column(length=256)
	private String sCreatorFID;//创始人
	private Timestamp cDatetime;
	

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getfMasterID() {
		return fMasterID;
	}
	public void setfMasterID(String fMasterID) {
		this.fMasterID = fMasterID;
	}
	public String getsTitle() {
		return sTitle;
	}
	public void setsTitle(String sTitle) {
		this.sTitle = sTitle;
	}
	public String getsMessage() {
		return sMessage;
	}
	public void setsMessage(String sMessage) {
		this.sMessage = sMessage;
	}
	public String getsCreatorFID() {
		return sCreatorFID;
	}
	public void setsCreatorFID(String sCreatorFID) {
		this.sCreatorFID = sCreatorFID;
	}
	public Timestamp getcDatetime() {
		return cDatetime;
	}
	public void setcDatetime(Timestamp cDatetime) {
		this.cDatetime = cDatetime;
	}

}
